<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,user-scalable=no">
		<title>淘宝页面内容居中</title>
	</head>
	<style type="text/css">
		*{
			margin: 0;
			padding: 0;
		}
		.wrapper{
			width:375px;
			height:160px;
			background-color:#123;
			position: relative;
		}
		.content{
			background-color:#CCCCCC;
			width:365px;
			height:80px;
			top:0;
			bottom: 0;
			left: 0;
			right: 0;
			margin:auto;
			position: absolute;
	</style>
	<body>
		<div class="wrapper">
			<div class="content">dfg</div>
		</div>
	</body>
</html>
